package database;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.ArrayList;

@SuppressWarnings("serial")
public class Mbjdec implements Serializable {

	private DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
	private DateFormat hourFormat = new SimpleDateFormat("HH:mm");
	private Calendar cal;
	private boolean finalized;
	private boolean[][] firstLine = new boolean[3][6];
	private boolean[][] secondLine = new boolean[3][6];
	private boolean[][] thirdLine = new boolean[4][8];
	private boolean[][] fourthLineOne = new boolean[5][3];
	private boolean[] fourthLineTwo = new boolean[6];
	private String[] obs = new String[4];
	private String therapist;
	private String narrative;
	private ArrayList<Object> additionalFiels;
	private int total;

	public Mbjdec() {

		cal = Calendar.getInstance();

		for (int i = 0; i < firstLine.length; i++) {
			for (int h = 0; h < firstLine[0].length; h++) {
				firstLine[i][h] = false;
				secondLine[i][h] = false;
			}
		}

		for (int i = 0; i < thirdLine.length; i++) {
			for (int h = 0; h < thirdLine[0].length; h++) {
				thirdLine[i][h] = false;
			}
		}

		for (int i = 0; i < fourthLineOne.length; i++) {
			for (int h = 0; h < fourthLineOne[0].length; h++) {
				fourthLineOne[i][h] = false;
			}
		}

		for (int h = 0; h < fourthLineTwo.length; h++) {
			fourthLineTwo[h] = false;
		}

		for (int i = 0; i < obs.length; i++) {
			obs[i] = "";
		}

		narrative = "";

		therapist = "";

		additionalFiels = new ArrayList<Object>();

		total = 0;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public ArrayList<Object> getAdditionalFiels() {
		return additionalFiels;
	}

	public void setAdditionalFiels(ArrayList<Object> additionalFiels) {
		this.additionalFiels = additionalFiels;
	}

	public boolean isFinalized() {
		return finalized;
	}

	public void setFinalized(boolean finalized) {
		this.finalized = finalized;
	}

	public boolean[][] getFirstLine() {
		return firstLine;
	}

	public void setFirstLine(boolean[][] firstLine) {
		this.firstLine = firstLine;
	}

	public boolean[][] getSecondLine() {
		return secondLine;
	}

	public void setSecondLine(boolean[][] secondLine) {
		this.secondLine = secondLine;
	}

	public boolean[][] getThirdLine() {
		return thirdLine;
	}

	public void setThirdLine(boolean[][] thirdLine) {
		this.thirdLine = thirdLine;
	}

	public boolean[][] getFourthLineOne() {
		return fourthLineOne;
	}

	public void setFourthLineOne(boolean[][] fourthLineOne) {
		this.fourthLineOne = fourthLineOne;
	}

	public boolean[] getFourthLineTwo() {
		return fourthLineTwo;
	}

	public void setFourthLineTwo(boolean[] fourthLineTwo) {
		this.fourthLineTwo = fourthLineTwo;
	}

	public String[] getObs() {
		return obs;
	}

	public void setObs(String[] obs) {
		this.obs = obs;
	}

	public String getTherapist() {
		return therapist;
	}

	public void setTherapist(String therapist) {
		this.therapist = therapist;
	}

	public String getNarrative() {
		return narrative;
	}

	public void setNarrative(String narrative) {
		this.narrative = narrative;
	}

	public String getHour() {
		return "" + hourFormat.format(cal.getTime());
	}

	public String getDate() {
		return "" + dateFormat.format(cal.getTime());
	}
}
